home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
JZFAT.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
792b
|
28 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│ Title : jzfat │
│ Purpose : Return file allocation info │
│ │
│ Notes : fdrive = 0 for default, 1 for A:, etc │
│ │
│ Written by Jack Zucker - 75766,1336 301-794-5950 on │
└────────────────────────────────────────────────────────────────────────────┘
*/
/* requires jaz.h */
unsigned char far *jzfat(fdrive , fsect_alloc,fsectsize,fclusters)
unsigned int fdrive ,*fsect_alloc,*fsectsize,*fclusters;
{
TREG wreg;
wreg.h.ah = 0x1c;
wreg.h.dl = fdrive;
msdos(&wreg);
*fsect_alloc = (int) wreg.h.al;
*fsectsize = wreg.x.cx;
*fclusters = wreg.x.dx;
return(LPOINTER(char,wreg.x.ds,wreg.x.bx));
}